// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 出厂设备列表 GET /v1/factory-devices */
export async function factoryDeviceControllerImplListDevice(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.factoryDeviceControllerImplListDeviceParams,
  options?: { [key: string]: any },
) {
  return request<API.ApiResultPaginationFactoryDevice>(`${apiPrefix}/v1/factory-devices`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 出厂设备批量删除 POST /v1/factory-devices/batch-delete */
export async function factoryDeviceControllerImplDeleteDevice(
  body: number[],
  options?: { [key: string]: any },
) {
  return request<API.ApiResultVoid>(`${apiPrefix}/v1/factory-devices/batch-delete`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
